import { createApp } from 'vue'
import 'normalize.css'
import './assets/css/index.less'
import icons from './global/register-icons'

// 全局引入
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'

// 手动引入el-message样式
// import 'element-plus/theme-chalk/el-message.css'

import App from './App.vue'

import router from './router'
import store from './store'

// // 全局注册图标组件
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// const app = createApp(App)
// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
//   app.component(key, component)
// }

const app = createApp(App)
app.use(store)
app.use(router)
// app.use(ElementPlus)
app.use(icons)
app.mount('#app')
